package com.zhaotianhao.check.userserver.service;

import com.zhaotianhao.check.userserver.entity.City;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Z-7
 * @since 2022-04-01
 */
public interface ICityService extends IService<City> {
    /**
     * 三级联动查询
     * @param pid
     * @return
     */
    List<City> selectAll(int pid);

    /**
     * 三级联动 递归
     * @param pid
     * @return
     */
    List<City> getCityTree(Integer pid);
}
